package com.yuw.service;

public class Student {
    // 属性
    private String stuName;
    private int stuAge;


    public Student(String stuName, int stuAge) {
        this.stuName = stuName;
        this.stuAge = stuAge;
    }

    public Student() {
    }

    // 行为
    public  void doStuding(){
        System.out.println(this.stuName +" is studing...");
    }

    public void saveMe(){
        System.out.println("it has bean saved!!");
    }

    public String getStuName() {
        return stuName;
    }

    public int getStuAge() {
        return stuAge;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }

    public void setStuAge(int stuAge) {
        this.stuAge = stuAge;
    }


}
